package logic;

public class Edge implements Comparable{
	
	public Vertex x,y;
	public int distance;
	
	public Edge(Vertex x, Vertex y, int distance){
		this.x = x;
		this.y = y;
		this.distance = distance;
	}

	@Override
	public int compareTo(Object arg0) {
		return distance - ((Edge)arg0).distance;
	}

}
